<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="public::head('生产企业遴选')">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8"></meta>

</head>
<body style="padding-top:0px;">
<input type="hidden" th:value="${session.Id}" id="id"/>
<input type="hidden" th:value="${session.Type}" id="Type"/>

<input type="hidden" th:value="${xiangmuId}" id="xiangmuId">

<div id="Shengchanqiyelist">

    <div th:replace="main/edit_shengchanqiye::editShengchanqiye"></div>

    <div class="primary-content">

        <div style="margin-top:15px;text-align: center;font-size:24px">
            <span class="btn btn-info" style="float:left;margin-right:15px;margin-top:10px;"
                  v-on:click="toback()">返回</span>
            <label  style="margin-left: 200px; ">{{xiangmu.xiangmuname}}</label>
<!--            <span class="btn btn-danger" style="float:right;margin-right:15px;margin-top:10px;"-->
<!--                  v-on:click="toDelete()">删除</span>-->
            <span class="btn btn-success" style="float:right;margin-right:15px;margin-top:10px;"
                              v-on:click="toRandomsmpling()">点击随机抽取</span>

            <span style="float:right;margin-right:15px;margin-top:10px;" v-text="">
                <a target="_blank" class='btn btn-primary'
                   style='float:right;margin-right:15px;width:120px;height:34px;color:#fff !important;'
                   :href="'/shengchanqiye/dangqianbiao?xiangmuid='+xiangmuId">下载当前表</a>
                <!-- <button v-on:click="toPrintlList(xiangmuitem.xiangmuid,xiangmuitem.xiangmuleixing)" class="btn btn-info">打印</button>-->
            </span>
        </div>
        <div style="margin-top:10px;text-align: center;font-size:24px">
            <label  style="margin-left: 20px; "></label>

        </div>
        <div id="List">
        </div>

        <div v-if="!show" style="text-align:center;width:100%;">查无数据</div>

        <div v-if="show" class="my-page-navigation">
            <button class="btn btn-default" v-on:click="SetPageIndex">首页</button>
            <button class="btn btn-default" v-on:click="SetPageIndexPrePage">上一页</button>
            <span v-text="pageIndex + '  /  ' + pageCount"></span>
            <span v-text="'共' + recordCount + '条品规'"></span>
            <button class="btn btn-default" v-on:click="SetPageIndexNextPage">下一页</button>
            <button class="btn btn-default" v-on:click="SetPageEnd">尾页</button>
            <span>跳到第</span>
            <input type="text" class="form-control" style="width: 80px;display:inline-block;"  v-model="inputPageIndexValue" v-on:keyup.enter="JumpPage">
            <span>页</span>
            <button class="btn btn-default" v-on:click="JumpPage">跳</button>
        </div>
    </div>
</div>

</body>

<script type="text/javascript">
    var ID = $("#id").val();
    $(function() {
        if(ID==""){
            alert("请先登录！");
            location.href='../main/login';
        }
    });

    function toModify(ppxuhao,ppyaopinmingcheng,ppguige,ppid){
        $('#editShengchanqiyeModal').modal();
        $("#myModalLabel_shengchanqiye").html(ppxuhao+"--"+ppyaopinmingcheng+"--"+ppguige);
        Shengchanqiye.id=ppid;

        // Shengchanqiye.yaopin = ppyaopin;
        // Shengchanqiye.qiye = ppqiye;
       // this.xiangmuId=ppxiangmuid;
        Shengchanqiye.bindShengchanqiye();


    }

</script>


<style>
    table{
        border:1px solid #e6e6e6;
        /*line-height: 5vh;*/
        color:#666666;
        font-size: 16px;
    }
    table {
        border-collapse: collapse;
        width: 100%;
    }
    td {
        padding:5px;
        border:1px solid #e6e6e6;
        font-size: 14px;
    }
    .table-head{padding-right:17px;background-color: #CDCDCD;color:#000;height:135px;}
    .table-body{width:100%; height:500px;overflow-y:scroll;}
    .table-head table,.table-body table{width:100%;}

    .table-body table tr:hover {
        background-color:#dff0d8;
        transition: .2s;
    }
    .table-body table tr:hover td{background-color:rgb(240, 249, 228);}
</style>
<script th:src="@{/js/main/list_shengchanqiye.js?v=1.0}"></script>
<style>
    a {
        text-decoration: none;
        color:#333;
    }
    /*正常的未被访问过的链接*/
    a:link {
        text-decoration: none;
    }
    /*已经访问过的链接*/
    a:visited {
        text-decoration: none;
    }
    /*鼠标划过(停留)的链接*/
    a:hover {
        text-decoration: none;
    }
    /* 正在点击的链接*/
    a:active {
        text-decoration: none;
    }
</style>

</html>